<script lang="ts" setup>
import {onMounted, ref,defineExpose} from "vue";
import ViewOfTable from "./components/ViewOfTable.vue";

let dialogVisible = ref(false);

let open = () => {
  dialogVisible.value = true;
};

let select = (param: any) => {
  dialogVisible.value = false;
  console.log(param);
}

defineExpose({
  open,
});

</script>

<template>
  <el-dialog title="选择组织" v-model="dialogVisible"
             width="70%">
    <view-of-table
    @select="select"
    ></view-of-table>
  </el-dialog>
</template>

<style scoped>
</style>